{% extends 'layouts/bbs.html' %}
{% load navtag %}
{% block nav %}
  {% nav "cooperate" %}
  {{ block.super }}
{% endblock %}

{% block content %}
  {% if message %}
    <div class="alert alert-danger" role="alert">
      {{ message | safe }}
    </div>
  {% endif %}
  <div class="col-md-12">
    <ul class="nav nav-pills nav-justified step step-arrow">
      <li class="active">
        <a style="cursor:default;">填写投票信息</a>
      </li>
      <li>
        <a>填写投票选项</a>
      </li>
    </ul>
  </div>
  <div class="clear"></div>
  <form action="new" method="post">
    <input type="hidden" name="user" value="{{ request.user.pk }}">
    <div class="form-group">
      <textarea class="form-control" rows="10" placeholder="在此填写您的投票描述" name="info"></textarea>
    </div>
    <div class="form-group" style="float:left;">
      <div class="checkbox checkbox-success">
        <input id="more" type="checkbox" name="multiple_selection">
        <label for="more">投票允许多选</label>
      </div>
    </div>
    <div class="form-group" style="float:left;margin-left: 50px;">
      <div class="checkbox checkbox-success">
        <input id="checkbox1" type="checkbox" name="other_people_add_select">
        <label for="checkbox1">允许其他人添加投票选项</label>
      </div>
    </div>
    <button class="btn btn-info" type="submit" style="float: right;">下一步</button>
  </form>
{% endblock %}